package com.hz.house.bean.es;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import com.hz.house.common.Constants;

import lombok.Data;

/**
 * <p> 置业顾问es存储数据bean
 * @author lfw
 */

@Data
@Document(indexName = Constants.SELL_MAN_ES_INDEX_NAME,type = Constants.SELL_MAN_ES_TYPE_NAME)
public class SellManEsDocumentBean {

	@Id
	private Integer customerId;//置业顾问的用户id
	
	@Field(type = FieldType.Text)
	private String name;//姓名
	
	@Field(type =FieldType.Keyword)
	private String headImg;//头像
	
	@Field(type =FieldType.Keyword)
	private String phone;
	
	@Field(type =FieldType.Keyword)
	private String wxAccount;
	
	@Field(type =FieldType.Integer)
	private Integer buildingId;
	
	@Field(type = FieldType.Text)
	private String buildingName;
	
	@Field(type =FieldType.Integer)
	private Integer scoreMedal;//活跃度徽章
	
	@Field(type =FieldType.Integer)
	private Integer workMedal;//勤奋徽章
	
	@Field(type =FieldType.Integer)
	private Integer trustMedal;//信赖徽章
	
	@Field(type =FieldType.Integer)
	private Integer visits;
	
	@Field(type =FieldType.Integer)
	private  Integer askCount;
	
	@Field(type =FieldType.Integer)
	private Integer huoYueDu;//活跃度，最近30天的
	
	@Field(type =FieldType.Integer)
	private Integer rank;//名次,按照活跃度排名
	
	@Field(type = FieldType.Integer)
	private Integer praiseCounts;//点赞数
	
	
	
	
}
